<template>
    <div>
        <div>
            <slot name="header">{{label}}</slot>
        </div>
        <div v-for="item,index in datas" :key="index">
            <slot name="cell">{{item[prop]}}</slot>
        </div>
    </div>
</template>

<script setup>

</script>

<script>
export default {
    props: {
        // row: { type: Object, default: ()=> {} },
        datas: { type: Array, default: ()=> [] },
        prop: { type: String },    // 绑定的属性
        label: { type: String, default: ()=> this.prop },   // 表头
    },
    computed: {
    },
    
}
</script>
